package com.wetao.testkotlin

enum class TestG(val r: Int, val g: Int, val b: Int) {
    RED(255, 0, 0), GREEN(0, 255, 0), YELLOW(255, 255, 0);
    fun rgb() = (r * 256 + g) * 255 + b
}